package com.abc.service;

import com.abc.bean.Depart;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author xiangyu
 * @Date 2021/7/21 15:53
 * @Version 1.0
 */
@Component//需要注意：一定要注入Spring 容器
public class DepartServiceFallBack implements DepartService{
    @Override
    public boolean saveDepart(Depart depart) {
        System.out.println("DepartServiceFallBack.saveDepart");
        return false;
    }

    @Override
    public boolean removeDepartById(int id) {
        return false;
    }

    @Override
    public boolean modifyDepart(Depart depart) {
        return false;
    }

    @Override
    public Depart getDepartById(int id) {
        return new Depart();
    }

    @Override
    public List<Depart> listAllDeparts() {
        return new ArrayList<>();
    }
}
